<{include file="ucenter/block/header.html"}>
<div class="ucenter_t">
   
    <ul>
        <li class="on">刮刮卡管理</li>
    </ul>
    <span class="r"><a href="<{link ctl='ucenter/weixin/addon/scratch:create'}>" class="pbtn">添加刮刮卡</a></span>
</div>
<div class="ucenter_c">
    <table width="100%" border="0" cellspacing="0" class="table">
    <tr><th class="w-50">刮刮卡</th><th>微信号</th><th>标题</th><th>封面图片</th><th class="w-100">开始时间</th><th class="w-100">结束时间</th><th class="w-50">数量</th><th class="w-50">浏览人数</th><th class="w-280">操作</th></tr>
    <{foreach $items as $item}>
       <tr><td><{$item.scratch_id}></td>
        <td><{$item.wx_id}></td>
        <td><{$item.title}></td>
        <td><img src="<{$pager.img}>/<{$item.photo}>" class="wh-50" /></td>
        <td><{$item.stime|format:'Y-m-d'}></td>
        <td><{$item.ltime|format:'Y-m-d'}></td>
        <td><{$item.predict_num}></td>
        <td><{$item.views}></td>
        <td>
        	 <a href="<{link ctl='ucenter/weixin/addon/scratch:sn' arg0=$item.scratch_id}>" class="pbtn">中奖</a>
             <a href="<{link ctl='ucenter/weixin/addon/scratch:goods' arg0=$item.scratch_id}>" class="pbtn">奖品</a>
			 <a href="<{link ctl='ucenter/weixin/addon/scratch:preview' arg0=$item.scratch_id  http='ajax'}>" mini-width='180' mini-load="扫描二维码" class="pbtn">预览</a>
            <a href="<{link ctl='ucenter/weixin/addon/scratch:edit' arg0=$item.scratch_id}>" class="pbtn">修改</a>
            <a href="<{link ctl='ucenter/weixin/addon/scratch:delete' arg0=$item.scratch_id}>" mini-act="删除" mini-confirm="确定要删除吗？" class="pbtn red">删除</a>
        </td></tr>
       
    <{foreachelse}>
     <tr><td colspan="20"><p class="tips"><span class="notice">没有数据</span></p></td></tr>
    <{/foreach}>
    <tr><td colspan="10"><div class="page"><{$pager.pagebar}></div></td></tr>
    </table>
</div>
<{include file="ucenter/block/footer.html"}>